import request from '@/utils/request'

// 登录接口
export const login = data => request.post('/user/login', data)

// 查看收藏列表
export const getHouseCollect = () => request.get('/user/favorites')

// 获取用户信息资料
export const getmsg = () => request.get('/user')

// 查看已发布房源列表
export const getsubmit = () => request.get('/user/houses')

// 根据城市名称查询该城市信息
export const cityInfo = id => request.get('/area/info', {
  params: {
    id
  }
})

// 查询房源数据
export const mapHouse = id => request.get('/area/map', {
  params: {
    id
  }
})
